package com.ntv.presentation.spring.web.news;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.ParameterizableViewController;

import com.ntv.service.news.INewsAppService;

public class NewsListController extends ParameterizableViewController 
{
	private INewsAppService newsAppService;
	
	public void setNewsAppService(INewsAppService newsAppService) {
		this.newsAppService = newsAppService;
	}
	
	public ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception
	{
		newsAppService.getLaststNewsList();
		
		newsAppService.getMostReadNewsList();
		
		newsAppService.getCurrentDayNews();
		
		return null;
	}
}
